#ifndef __SP1K_DPS_API__
#define __SP1K_DPS_API__
#include "dps_api.h"

/**
 * @fn UINT8 sp1k_dps_setPrtCapability(UINT8 type,UINT32 value) 
 * @brief						set the print param of this list of image files
 							if the printer not support the capability,it will set default value.
 * @param[in] type 			the type of print param 
 * @param[in] value  	      		the value of print param	
 * @retval TRUE/FALSE
 * @see dps_api.h dps_api.c
 */
#define sp1k_dps_setPrtCapability(UINT8_type,UINT32_value)				dps_setPrtCapability(UINT8_type,UINT32_value)

/**
 * @fn UINT8 sp1k_dps_getPrtCapability(UINT8 type,UINT32 value) 
 * @brief						get the print param of this list of image files
 * @param[in] type 			the type of print param 
 * @param[in] value  	      		the value of print param	
 * @retval TRUE/FALSE
 * @see dps_api.h dps_api.c
 */
#define sp1k_dps_getPrtCapability(UINT8_type,UINT32_value)					dps_getPrtCapability(UINT8_type,UINT32_value)

/**
 * @fn UINT8 dps_addImageToPrint(UINT32 handle,UINT8 *pfileName,UINT16 copies,
	UINT16 cropping_x,UINT16 cropping_y,UINT16 cropping_w,UINT16 cropping_h,
	UINT8 *pDate	)
 * @brief						add a image file to print list
 * @param[in] handle 			the ID of file
 * @param[in] pfileName 		print filename
 * @param[in] copies			print count
 * @param[in] cropping_x 		print area
 * @param[in] cropping_y 
 * @param[in] cropping_w 
 * @param[in] cropping_h 
 * @param[in] pDate 			print date
 * @retval TRUE/FALSE
 * @see dps_api.h dps_api.c
 */
#define sp1k_dps_addImageToPrint(handle,pfileName,copies, cropping_x, cropping_y, cropping_w, cropping_h,pDate) dps_addImageToPrint(handle,pfileName,copies, cropping_x, cropping_y, cropping_w, cropping_h,pDate)
/**
 * @fn UINT8 sp1k_dps_doAction(UINT8 action,UINT32 param) 
 * @brief						start a dps action
 * @param[in] action 			the type of action
 * @param[in] param  	      		 	
 * @retval DPS_ACTION_Idle
 * @see dps_api.h dps_api.c
 */
#define sp1k_dps_doAction(UINT8_action,UINT32_param) 					dps_doAction(UINT8_action,UINT32_param)


/**
 * @fn UINT16 sp1k_dps_getPrtServiceInfo(PDPS_PARA_ConfigPrintService pcps)
 * @brief						get the descriptor data of printer service
 * @param[in] pcps 			the descriptor data pointer of printer service
 * @retval 					the data is new or not
 * @see dps_api.h dps_api.c
 */
#define sp1k_dps_getPrtServiceInfo(pDPS_PARA_ConfigPrintService) 		dps_getPrtServiceInfo(pDPS_PARA_ConfigPrintService)

/**
 * @fn UINT16 dps_getCapability(UINT8 type,PDPS_PARA_Capability_Elem pce)
 * @brief						get the descriptor data of printer capability
 * @param[in] pcps 			the descriptor data pointer of printer capability
 * @retval 					the data is new or not
 * @see dps_api.h dps_api.c
 */
#define sp1k_dps_getCapability(UINT8_type,pDPS_PARA_Capability_Elem) 	dps_getCapability(UINT8_type,pDPS_PARA_Capability_Elem)


/**
 * @fn UINT16 dps_getStatus(PDPS_PARA_JobStatus pjs,PDPS_PARA_DeviceStatus pds)
 * @brief						get the descriptor data of printer job/device status
 * @param[in] pcps 			the descriptor data of printer job/device status
 * @retval 					the data is new or not
 * @see dps_api.h dps_api.c
 */
#define sp1k_dps_getStatus(pDPS_PARA_JobStatus ,pDPS_PARA_DeviceStatus )	dps_getStatus(pDPS_PARA_JobStatus ,pDPS_PARA_DeviceStatus )

/**
 * @fn UINT8 dps_getPrtConfigInfo(UINT8 index,DPS_PARA_ConfigPrintInfo pcpi)
 * @brief						get the data of the print file list
 * @param[in] pcpi 			the index of the print file list
 * @param[out] pcpi 			the data pointer 
 * @retval 					the data is new or not
 * @see dps_api.h dps_api.c
 */
#define sp1k_dps_getPrtConfigInfo( index,pDPS_PARA_ConfigPrintInfo)		dps_getPrtConfigInfo( index,pDPS_PARA_ConfigPrintInfo)

#define  sp1k_dps_makeHandle( fileIndex)  sidc_makeHandle( fileIndex) 

#define sp1k_dps_sendEvent(ec,p0,p1,p2) dps_sendEvent(ec,p0,p1,p2)

#define sp1k_dps_sidcInit() SIDC_Init()
#define sp1k_dps_init()		dps_init()
#define sp1k_dps_paramGet dps_paramGet
#define sp1k_dps_paramSet dps_paramSet
#endif

